#!/bin/sh

## $TOP_ROOT/rootfs
rm -fr $TOP_ROOT/rootfs.cpio.gz > /dev/null
$TOP_ROOT/kernel/linux/scripts/gen_initramfs_list.sh $TOP_ROOT/rootfs > $TOP_ROOT/filelist
sudo $TOP_ROOT/kernel/linux/usr/gen_init_cpio $TOP_ROOT/filelist > $TOP_ROOT/rootfs.cpio
gzip $TOP_ROOT/rootfs.cpio
rm $TOP_ROOT/filelist

